<!-- <template>
	<view >
		<u-modal :show="show" :showCancelButton="true"  :title="title" 
		@cancel="cancel" @confirm="confirm"
		>
			<view class="slot-content">
				<rich-text :nodes="content"></rich-text>
			</view>
		</u-modal>
		<u-button @click="show = true">打开</u-button>
	</view>
</template>

<script>
export default {
	data() {
		return {
			show:false,
			title:'警告',
			content:`空山新雨后<br>
					天气晚来秋`
		};
	},
	methods:{
	
		confirm(){
			this.show = false;
		},
		cancel(){
			this.show = false;
		}
	}
};
</script>
 -->
 
 <template>
 	<!-- <view class="">
 		<u-modal :show="shown" @confirm="confirm" ref="uModal" :asyncClose="true"></u-modal>
 		<u-button @click="showModal">弹起Modal</u-button>
 	</view> -->
	
	<u-toast ref="uToast"></u-toast>
			<u-cell-group title-bg-color="rgb(243, 244, 246)">
				<u-cell
					:titleStyle="{fontWeight: 500}"
					:title="item.title"
					v-for="(item, index) in list"
					:key="index"
					isLink
					:icon="item.iconUrl"
					@click="showToast(item)"
				>
				</u-cell>
			</u-cell-group>
 </template>
 
 <script>
 export default {
     data() {
         return {
 			// shown: false
 		}
 	},
 	// onLoad: function(opt) {
 		// uni.navigateTo({
 		// 	url:'../jifen/jifen'
 		// })
 	// },
 	methods:{
 		// showModal() {
 		// 	this.shown = true;
 		// },
 		// confirm() {
			// this.shown = false;
 		// 	setTimeout(() => {
 		// 		// 3秒后自动关闭
 				
			// 	uni.navigateTo({
			// 		url:'../jifen/jifen'
			// 	})
 		// 	}, 3000)
 		// }
     }
 }
 </script>